package main;

import TreeNode.Solution;
import TreeNode.TreeNode;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		TreeNode root = new TreeNode(3);
		root.left = new TreeNode(9);
		root.right = new TreeNode(20);
		root.right.left = new TreeNode(15);
		root.right.right = new TreeNode(7);
		Solution solution = new Solution();
		List<List<Integer>> ans = solution.verticalTraversal(root);
		for(int i = 0;i < ans.size();i++) {
			System.out.println(ans.get(i));
		}
	}
}
